<?php 
	session_start(); 
	// echo "输出sessionid = " . session_id() . "<br>";

	function setLoginInfo($key, $value) {
		$_SESSION[$key] = $value;
		// echo "存入成功" . "<br>";
		// echo "$key = " . $_SESSION[$key];
	}
	class SessionInfo {
		static function setLoginInfo($key, $value) {
			$_SESSION[$key] = $value;
			// echo "存入成功" . "<br>";
			// echo "$key = " . $_SESSION[$key];
		}

		static function getLoginInfo($key) {
			$value = $_SESSION[$key];
			// echo "输出$key = " . $value . "<br>";
			return $value;
		}
	}
	 
?>
